﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Adm_MatterChange.aspx.cs" Inherits="ArtLand.OA.Project.ADM.Adm_MatterChange" %>


<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <script src="../js/jquery-1.4.1.min.js"></script>
    <style>
        .x-form-item {
            padding: 5px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <ext:PageManager ID="PageManager1" runat="server" AutoSizePanelID="Panel2" />
        <ext:Panel ID="Panel2" runat="server" EnableBackgroundColor="true" BodyPadding="3px"
            ShowBorder="false" ShowHeader="false" Width="750px" Layout="Anchor">
            <Toolbars>
                <ext:Toolbar Position="Footer" runat="server" ID="tool2">
                    <Items>
                        <ext:Button Text="保存" Icon="DatabaseSave" ValidateForms="SimpleForm2" ID="btnSave" runat="server" OnClick="btnSave_Click"></ext:Button>
                        <ext:Button Text="关闭" Icon="SystemClose" ID="btnClose" runat="server"></ext:Button>
                    </Items>
                </ext:Toolbar>
            </Toolbars>
            <Items>
                <ext:SimpleForm ID="SimpleForm2" EnableBackgroundColor="true" ShowBorder="false" ShowHeader="false" Width="480px" BodyPadding="5px" Title="表单" runat="server">
                    <Items>
                        <ext:Panel ID="Panel7" ShowHeader="false" CssClass="x-form-item" ShowBorder="false"
                            Layout="Column" runat="server" EnableBackgroundColor="true">
                            <Items>
                                <ext:Label ID="Label8" runat="server" Text="类型：" Width="65px"></ext:Label>
                                <ext:DropDownList ID="Drp_MatterType" runat="server" OnSelectedIndexChanged="Drp_MatterType_SelectedIndexChanged" AutoPostBack="true">
                                    <ext:ListItem Text="领料" Value="1" />
                                    <ext:ListItem Text="交料" Value="2" />
                                </ext:DropDownList>
                                <ext:Label ID="Label6" runat="server" Text="&nbsp;&nbsp;"></ext:Label>
                                <ext:Label ID="Label16" runat="server" Width="65px" Text="需求日期："></ext:Label>
                                <ext:DatePicker runat="server" ID="txt_NeedTime" Width="130px" Label="需求日期"></ext:DatePicker>
                            </Items>
                        </ext:Panel>
                    </Items>
                </ext:SimpleForm>
                <ext:Panel ID="Panel8" ShowBorder="True" ShowHeader="false" AnchorValue="100% -200"
                    Layout="Fit" runat="server">
                    <Toolbars>
                        <ext:Toolbar ID="Toolbar1" runat="server">
                            <Items>
                                <ext:Button ID="btnNew" Text="添加物资" Icon="Add" EnablePostBack="false" runat="server">
                                </ext:Button>
                                
                                <ext:ToolbarSeparator></ext:ToolbarSeparator>
                                <ext:ToolbarText Text="双击单元格进行编辑"></ext:ToolbarText>
                            </Items>
                        </ext:Toolbar>
                    </Toolbars>
                    <Items>
                        <ext:Grid ID="Grid1" ShowBorder="false" ShowHeader="false"
                            Title="行政物资管理" runat="server" DataKeyNames="ID" OnRowDataBound="Grid1_RowDataBound" EnableRowNumber="true" AllowCellEditing="true" ClicksToEdit="2">

                            <Columns>
                                <ext:RenderField Width="140px" ColumnID="MATNUB" DataField="MATNUB" FieldType="String"
                                    HeaderText="物资编号">
                                    <Editor>
                                        <ext:TriggerBox ID="txt_MATNUB" Required="true" Label="物料编号" EnableEdit="false" TriggerIcon="Search" EmptyText="选择物料编号" Width="150px" runat="server">
                                        </ext:TriggerBox>
                                    </Editor>
                                </ext:RenderField>
                               <%-- <ext:RenderField Width="80px" ColumnID="MatterModel" DataField="MatterModel" FieldType="String"
                                    HeaderText="型号">
                                    <Editor>
                                      <ext:TextBox ID="txt_MatterModel" runat="server"></ext:TextBox>
                                    </Editor>
                                </ext:RenderField>
                                <ext:RenderField Width="80px" ColumnID="MatterSpec" DataField="MatterSpec" FieldType="String"
                                    HeaderText="规格">
                                    <Editor>
                                      <ext:TextBox ID="txt_MatterSpec" runat="server"></ext:TextBox>
                                    </Editor>
                                </ext:RenderField>

                                <ext:RenderField Width="80px" ColumnID="MatterColor" DataField="MatterColor" FieldType="String"
                                    HeaderText="颜色">
                                    <Editor>
                                      <ext:TextBox ID="txt_MatterColor" runat="server"></ext:TextBox>
                                    </Editor>
                                </ext:RenderField>--%>

                                <ext:RenderField Width="80px" ColumnID="Quantity" DataField="Quantity" FieldType="Int"
                                    HeaderText="数量">
                                    <Editor>
                                        <ext:NumberBox runat="server" ID="txt_Quantity"></ext:NumberBox>
                                    </Editor>
                                </ext:RenderField>
                                <ext:RenderField Width="80px" ColumnID="MatterPrice" DataField="MatterPrice" FieldType="Int"
                                    HeaderText="金额">
                                    <Editor>
                                        <ext:NumberBox runat="server" ID="txt_MatterPrice"></ext:NumberBox>
                                    </Editor>
                                </ext:RenderField>

                                <ext:LinkButtonField ConfirmText="您确定要删除该条记录吗？" ConfirmTarget="Top" ColumnID="Delete"
                                    Width="40px" CommandName="Del" Icon="Delete" TextAlign="Center" />
                                <ext:BoundField DataField="ID" Hidden="true" />
                            </Columns>
                        </ext:Grid>
                    </Items>
                </ext:Panel>
                <ext:SimpleForm ID="SimpleForm1" EnableBackgroundColor="true" ShowBorder="false" ShowHeader="false" BodyPadding="5px" Title="表单" runat="server">
                    <Items>
                        <ext:Panel ID="Panel3" ShowHeader="false" CssClass="x-form-item" ShowBorder="false"
                            Layout="Column" runat="server" EnableBackgroundColor="true">
                            <Items>
                                <ext:Label ID="Label4" runat="server" Text="领料人："  Width="65px"></ext:Label>
                                <ext:TriggerBox ID="txt_MatterAdder" Required="true" Label="领料人" Width="140px" EnableEdit="false" Readonly="false" TriggerIcon="Search" EmptyText="选择申请人" runat="server">
                                </ext:TriggerBox>
                                <ext:HiddenField runat="server" ID="txt_MatterAdderID"></ext:HiddenField>
                                <ext:Label ID="Label2" runat="server" Text="&nbsp;&nbsp;"></ext:Label>
                                <ext:Label ID="Label3" runat="server" Text="状态："></ext:Label>
                                <ext:DropDownList ID="Drp_Status" runat="server" Enabled="false">
                                     <ext:ListItem Text="未完成" Value="未完成" />
                                    <ext:ListItem Text="取消" Value="取消" />
                                    <ext:ListItem Text="完成" Value="完成" />
                                </ext:DropDownList>
                            </Items>
                        </ext:Panel>
                        <ext:Panel ID="Panel1" ShowHeader="false" CssClass="x-form-item" ShowBorder="false"
                            Layout="Column" runat="server" EnableBackgroundColor="true">
                            <Items>
                                <ext:Label ID="Label1" runat="server" Text="备注："  Width="65px"></ext:Label>
                                <ext:TextArea runat="server" ID="txt_REMARK" Height="100px" Width="400px"></ext:TextArea>
                            </Items>
                        </ext:Panel>
                    </Items>
                </ext:SimpleForm>
            </Items>
        </ext:Panel>
        <ext:Window ID="Window1" Title="编辑" Popup="false" EnableIFrame="true" runat="server" EnableConfirmOnClose="false" IFrameUrl="about:blank"
            Target="Top" IsModal="True" Width="700px" Height="560px">
        </ext:Window>
    </form>
    <script src="../js/extgridbug.js"></script>
</body>
</html>
